﻿@{
    ViewBag.Title = "MyShippingAddress";
    Layout = null;
}
<script src="http://code.jquery.com/jquery-1.9.1.min.js"></script>
<script src="http://code.jquery.com/mobile/1.3.1/jquery.mobile-1.3.1.min.js"></script>
<link href="~/Themes/commom/jquery.mobile.structure-1.3.0.min.css" rel="stylesheet" media="all" ice:classes="*"/>
<link href="~/Themes/commom/base.css" rel="stylesheet" type="text/css" media="all" ice:classes="*" />
<link href="~/Themes/green/site_ext.css" rel="stylesheet"  media="all"  ice:classes="*" />
<script type="text/javascript" src="~/Utility/pages/jquery.cookie.js"></script>
<script type="text/javascript" src="~/Utility/pages/pg_common.js"></script>
<script type="text/javascript" src="~/Utility/pages/pg_global.js"></script>

<div data-role="content" class="ui-content" role="main">
     @foreach (var item in Model)
    {
        using ((Html.BeginForm("MyShippingAddressDelete", "MyAccount")))
        {
        <div class="groupbox">
            <div class="OtherTitle orderShipp">
                <div class="TitleLeft">
                  
                     <input id="ridPaymentTypeOnlinePay" name="ArrivePay" value="0"  type="radio">
                    <fieldset data-role="controlgroup">
                       
                        <legend>
                            <h1> 常用收货地址 @ViewBag.Number</h1>
                        </legend>
                        
                        <div class="mb5 ml10">
                            <ul id="orderListTitle">
                                <li class="mb5">
                                    <span class="tit">收货人：</span><span class="info">@item.ShipTo</span>
                                </li>
                                <li class="mb5">
                                    <span class="tit">座机：</span><span class="info">
                                        @if (item.TelPhone == "")
                                        {
                                            @Html.Raw("&nbsp");
                                        }
                                        else
                                        {
                                            @item.TelPhone
                                        }
                                    </span>
                                </li>
                                <li class="mb5">
                                    <span class="tit">手机：</span><span class="info">@item.CellPhone</span>
                                </li>



                                <li class="mb5">
                                    <span class="tit">收货地址：</span><span class="info">
                                        @if (item.IsDefault)
                                        {
                                            @Html.Raw("默认是")
                                        }
                                        else
                                        {
                                            @Html.Raw("否")
                                        }
                                    </span>
                                </li>


                            </ul>
                        </div>
                    </fieldset>
                </div>
                 

                <div class="TitleRight">
                    <span name="EditQtyAfter" class="ItemQtySpan">
                        <div class="ItemQty">
                            <div class="AddTable">
                                <input type="hidden" name="hidUserId" value="@ViewBag.UserId">
                                <input type="hidden" name="hidShippingId" value="@item.ShippingId">
                               
                            </div>
                        </div>
                    </span>
                </div>
            </div>
        </div>
                                        ViewBag.Number++;
        }
    }
</div>




